package com.luych.oauth2Center.entity;

import java.io.Serializable;

public class Oauth2Scope implements Serializable {
    private String scopeId;

    private String scopeName;

    private String scopeText;

    private static final long serialVersionUID = 1L;

    public Oauth2Scope(String scopeId, String scopeName, String scopeText) {
        this.scopeId = scopeId;
        this.scopeName = scopeName;
        this.scopeText = scopeText;
    }

    public Oauth2Scope() {
        super();
    }

    public String getScopeId() {
        return scopeId;
    }

    public void setScopeId(String scopeId) {
        this.scopeId = scopeId == null ? null : scopeId.trim();
    }

    public String getScopeName() {
        return scopeName;
    }

    public void setScopeName(String scopeName) {
        this.scopeName = scopeName == null ? null : scopeName.trim();
    }

    public String getScopeText() {
        return scopeText;
    }

    public void setScopeText(String scopeText) {
        this.scopeText = scopeText == null ? null : scopeText.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", scopeId=").append(scopeId);
        sb.append(", scopeName=").append(scopeName);
        sb.append(", scopeText=").append(scopeText);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}